<?php

class Application_Form_Product extends Zend_Form
{

    public function init()
    {
    	$this->setName('Product');
    	
    	$prod_no = new Zend_Form_Element_Text('prod_no');
    	$prod_no->setLabel('Product No')
    		->addFilter('StripTags')
    		->addFilter('StringTrim')
    		->setAttrib('class', 'short')
    		->setAttrib('id', 'left');
    	
    	$prod_name = new Zend_Form_Element_Text('prod_name');
    	$prod_name->setLabel('Product Name')
    		->addFilter('StripTags')
    		->addFilter('StringTrim')
    		->setAttrib('class', 'short')
    		->setAttrib('id', 'right');
    	
    	$prod_type = new Zend_Form_Element_text('prod_type');
    	$prod_type->setLabel('Product Type')
    		->addFilter('StripTags')
    		->addFilter('StringTrim')
    		->setAttrib('class', 'short')
    		->setAttrib('id', 'left');
    	
    	$prod_description = new Zend_Form_Element_Text('prod_description');
    	$prod_description->setLabel('Description')
    		->addFilter('StripTags')
    		->addFilter('StringTrim')
	    	->setAttrib('class', 'short')
    		->setAttrib('id', 'right');
    	
    	$prod_min_price = new Zend_Form_Element_Text('prod_min_price');
    	$prod_min_price->setLabel('Price Minimum')
    		->addFilter('StripTags')
    		->addFilter('StringTrim')
    		->setAttrib('class', 'short')
    		->setAttrib('id', 'left');
    	 
    	$prod_max_price = new Zend_Form_Element_Text('prod_max_price');
    	$prod_max_price->setLabel('Price Maximun')
    		->addFilter('StripTags')
    		->addFilter('StringTrim')
    		->setAttrib('class', 'short')
    		->setAttrib('id', 'right');
    	 
    	$submit = new Zend_Form_Element_Submit('submit');
    	$submit->setAttrib('id', 'submit');
    	
    	$this->addElements(array($prod_no, $prod_name, $prod_type, $prod_description, $prod_min_price, $prod_max_price, $submit));
    }


}

